<%--%----%>
<%--Created by IntelliJ IDEA.--%>
<%--User: jiangzhenzhen--%>
<%--Date: 2018/7/18--%>
<%--Time: 15:18--%>
<%--To change this template use File | Settings | File Templates.--%>
<%--&ndash;%&gt;--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/component/common.jsp" %>

<html>
<head>
    <title>失智病人信息</title>
    <%--<%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>--%>
    <script src="${assets}/js/views/vue.min.js"></script>
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap.min.css" type="text/css">
    <%--<link rel="stylesheet" href="${frames}/css/lib/dataTables.bootstrap.css" type="text/css">--%>
    <%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>
    <script type="text/javascript" src="${assets}/js/echarts.js"></script>
    <link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">
    <script src="${js}/jquery-1.9.1.min.js"></script>
    <link href="${assets}/css/bootstrap-datetimepicker.css" type="text/css">
    <script src="${assets}/js/bootstrap-datetimepicker.min.js"></script>
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="${assets}/css/bootstrapDatepickr-1.0.0.css">
    <script src="${assets}/js/bootstrapDatepickr-1.0.0.min.js"></script>
    <%--<link rel="stylesheet" href="${frames}/css/lib/dataTables.bootstrap.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${newframe}/css/base/base.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${frames}/css/table.css" type="text/css">--%>
    <link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css">
    <%--<link rel="stylesheet" href="../assets/css/views/modules/_common.scss">--%>
    <%--<link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css" type="text/css">--%>
    <%--<script src="${assets}/js/views/bpAbnormal.js"></script>--%>
    <link rel="stylesheet" href="${assets}/css/views/modules/_common.scss">
    <link rel="stylesheet" href="${assets}/css/views/archives/pArchives.css">
    <link rel="stylesheet" href="${assets}/css/views/department/departmentMgr.css">
    <script src="${frames}/Chronic/laydate/laydate.js"></script>
    <script src="${js}/jquery.dataTables.js"></script>
    <style>
        #tablepart5 .dataTables_paginate .current,
        #table3 .dataTables_paginate .active {
            color: #35acfd;
            cursor: default;
            background-color: #ffffff;
            border: none;
        }

        #tablepart5 .dataTables_paginate a,
        #table3 .dataTables_paginate a {
            display: inline-block;
            width: 24px;
            height: 24px;
            border: none;
            color: #333333;
            text-align: center;
        }

        #tablepart5 .pagination .active a,
        #table3 .pagination .active a {
            color: #35acfd;
            cursor: default;
            background-color: #ffffff;
            border: none;
        }

        #bpillness span {
            margin-top: 0 !important;
        }

        .feritin input {
            /*width:20px;*/
            /*height:20px;*/
            vertical-align: middle;
            margin-bottom: 7px;
            display: inline-block !important;
        }

        /*各种历史，默认隐藏*/
        .personHistory {
            display:none;
        }
        #illnessTable tr td{
            border:#ccc solid 1px;
            padding: 5px 10px;
            color:#666666;
        }
        #illnessTable tr td:first-child{
            width:22%;
        }
    </style>
</head>
<body>
<div>
    <%@ include file="../../breadline.jsp" %>
</div>
<div id="main">
<%--    病人基本信息模块--%>
    <div style="padding-bottom:20px;background-color: #ffffff;box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.05);">
        <div style="margin-left:19px;">
            <div class="first_news">
                <div class="news" style="margin-top:15px;margin-bottom:16px;">
                    <h3>病人基本信息</h3>
                    <button type="button" class="btn btn-info" @click="updateInfo()" >
                        <img src="${assets}/images/revise.png" alt="" style="width:16px;vertical-align: middle;">  修改
                    </button>
                    <%--                    <button :disabled="dis" id="btnText" v-if="synchronous" type="button" class="btn btn-info" @click="Synchronous($event)">{{btnText}}</button>--%>
                </div>
                <div style="display: flex;">
                    <div class="img" style="width:12%;">
                        <img src="../../../../assets/images/img1.png" alt="头像">
                    </div>
                    <div class="infor" style="width:80%;margin-left:2%;">
                        <div>
                            <span style="width:17%;">姓名: &nbsp;{{infor.realname}}</span>
                            <span style="width:15%;">性别: &nbsp;{{infor.sex}}</span>
                            <span style="width:15%;">年龄: &nbsp;{{infor.age}}</span>
                            <span style="width:22%;">出生日期: &nbsp;{{infor.birthday}}</span>
                            <span>身份证号: &nbsp;{{infor.idcard}}</span>
                        </div>
                        <div>
                            <span style="width:17%;">身高: &nbsp;{{infor.height}}cm</span>
                            <span style="width:15%;">体重: &nbsp;{{infor.weight}}kg</span>
                            <span style="width:15%;">BMI: &nbsp;{{infor.bMI}}</span>
                            <span style="width:22%;">腰围: &nbsp;{{infor.waist}}cm</span>
                            <span style="width:24%;">联系电话: &nbsp;{{infor.phone}}</span>
                        </div>
                        <div class="other">
                            <span style="width:30%;margin-right:0;vertical-align:middle">地址: &nbsp;{{infor.homeaddress}}</span>
                            <span style="width:33%;margin-right:0;vertical-align:middle">现患疾病诊断信息: &nbsp;{{infor.diseaseDiagnosis}}</span>
                            <span class="type" style="width:20%;margin-left:5%;vertical-align:middle;">
                                <p :title="infor.diseasesType" style="overflow: hidden;-webkit-line-clamp: 1;display: -webkit-box;-webkit-box-orient: vertical;">疾病类型: &nbsp;{{infor.diseaseName}}</p>
                            </span>
                        </div>
                        <div class="type" style="margin-top:13px;">
                            <b style="margin-right:5%;font-weight: 100;">建档医生: &nbsp;{{infor.doctor}}</b>
                            <b style="font-weight: 100;margin-right:5%;">建档机构: &nbsp;{{infor.hospName}}</b>
                            <b style="font-weight: 100;">备注: &nbsp;{{infor.remark}}<br/></b>
                            <b style="font-weight: 100;" id="bgRemark"></b>
                            <b style="font-weight: 100;" id="bpRemark"></b>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--疾病信息模块--%>
    <%-- 疾病信息模块 --%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div style="margin-left:19px;padding-bottom:20px;">
            <h3 style="margin-top:15px;margin-bottom:16px;">疾病信息</h3>
            <div class="bottom">
                <button type="button" class="btn btn-info" @click="dataSave()" >
                    <img src="${assets}/images/revise.png" alt="" style="width:16px;vertical-align: middle;">  保存
                </button>
            </div>
            <%-- 骨松信息 --%>
            <div class="test">
                <div class="illnessInfo" style="margin-left:19px;">
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">主诉</span>
                        <div class="way_content">
                            <div id="blType">
                                <label for="">失智分级</label>
                                <span class="types" style="width:10%">
                                        <input type="radio" value="1" name="blType" id="blType1" v-model="checkData.blType" @change="getType">
                                        <label for="blType1">普通患者</label>
                                    </span>
                                <span class="types" style="width:10%">
                                        <input type="radio" value="2" name="blType" id="blType2" v-model="checkData.blType" @change="getType">
                                        <label for="blType2">高危患者</label>
                                    </span>
                                <span class="types" style="width:10%">
                                        <input type="radio" value="3" name="blType" id="blType3" v-model="checkData.blType" @change="getType">
                                        <label for="blType3">确诊患者</label>
                                    </span>
                            </div>
                            <div>
                                <label for="">患者病症描述：</label>
                                <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="checkData.msg"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">个人史</span>
                        <div class="way_content">
                            <div>
                                <label for="smoke">是否吸烟：</label>
                                <select name="smoke" id="smoke" v-model="checkData.smoke">
                                    <option value="">请选择</option>
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                                <label for="drink" style="margin-left:20px;">是否饮酒：</label>
                                <select name="drink" id="drink" v-model="checkData.drink">
                                    <option value="">请选择</option>
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                                <label for="diet" style="margin-left:20px;">膳食：</label>
                                <select name="diet" id="diet" v-model="checkData.diet">
                                    <option value="">请选择</option>
                                    <option value="1">普通膳食</option>
                                    <option value="2">治疗膳食</option>
                                    <option value="3">试验膳食</option>
                                    <option value="4">儿科膳食</option>
                                    <option value="5">素食</option>
                                </select>
                            </div>
                            <div class="feritin fadeContainer" style="margin-top:0px;margin-bottom:0px;">
                                <div style="width:100%;overflow:hidden;">
                                    <label for="drinkingType" style="margin-top:5px;">饮用类型：</label>
                                    <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                         id="drinkingType" ref="drinkingType">
                                    <span class="ill1" v-for="(item,key) in drinkingType" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check" :value="item.id" :id="item.forId" v-model="checkData.drinkingType" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                    </div>
                                </div>
                            </div>
                            <div>
                                <label for="sleepTime" style="width:160px;">平均每天睡眠时间：</label>
                                <select name="sleepTime" id="sleepTime" v-model="checkData.sleepTime">
                                    <option value="">请选择</option>
                                    <option value="1">小于5小时</option>
                                    <option value="2">5-6小时</option>
                                    <option value="3">7-8小时</option>
                                    <option value="4">8小时以上</option>
                                </select>
                                <label for="sunTime" style="width:160px;margin-left:22px;">平均每天日晒时间：</label>
                                <select name="sunTime" id="sunTime" v-model="checkData.sunTime">
                                    <option value="">请选择</option>
                                    <option value="1">很少</option>
                                    <option value="2">一般</option>
                                    <option value="3">很多</option>
                                </select>
                            </div>
                            <div>
                                <label for="sportTimes" style="width:160px;">平均每周锻炼频率：</label>
                                <select name="sportTimes" id="sportTimes" v-model="checkData.sportTimes">
                                    <option value="">请选择</option>
                                    <option value="1">小于3次</option>
                                    <option value="2">3-5次</option>
                                    <option value="3">大于5次</option>
                                </select>
                                <label for="sportTime" style="width:160px;margin-left:22px;">平均每天锻炼时间：</label>
                                <select name="sportTime" id="sportTime" v-model="checkData.sportTime">
                                    <option value="">请选择</option>
                                    <option value="1">小于30分钟</option>
                                    <option value="2">30-60分钟</option>
                                    <option value="3">大于60分钟</option>
                                </select>
                            </div>
                            <%-- 后台未设置参数 --%>
                            <div class="feritin fadeContainer" style="margin-top:0px;margin-bottom:0px;">
                                <div style="width:100%;overflow:hidden;">
                                    <label style="margin-top:5px">最常用锻炼方式：</label>
                                    <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                         id="sportMode" ref="sportMode">
                                    <span class="ill1" v-for="(item,key) in sportMode" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId" v-model="checkData.sportMode" />
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="way">
                        <div class="test" style="margin-top:30px;">
                            <div>
                                <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                                <span class="title">疾病史</span>
                            </div>
                            <table id = "illnessTable" style="width:100%;border:#ccc solid 1px;">
                                <tbody>
                                <tr>
                                    <td colspan="2">既往体健</td>
                                </tr>
                                <tr>
                                    <td>风湿系统疾病</td>
                                    <td>
                                         <span class="ill1" v-for="(item,key) in illnessData.rheumatismType" :key="key">
                                            <input type="checkbox" :name="item.checkName" :checked="item.checked"
                                                   :value="item.id" :id="item.forId" v-model="checkData.rheumatismType" />
                                            <label :for="item.forId">{{item.name}}</label>
                                        </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>内分泌及代谢系统疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.endocrineType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.endocrineType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>循环系统疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.circulatoryType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.circulatoryType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>呼吸系统疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.breathingType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.breathingType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>神经及精神系统疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.nerveType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.nerveType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>消化系统疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.digestionType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.digestionType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>泌尿系统疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.urineType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.urineType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>血液系统疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.bloodType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.bloodType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>先天性及遗传性疾病</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.inheritanceType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.inheritanceType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>其他</td>
                                    <td>
                                        <div v-for="(item,index) in illnessData.otherType" :key="index">
                                            <span class="ill1" style="float:left;">
                                                <input type="checkbox" :value="item.id" :id="item.id"
                                                       :checked="item.checked" :name="item.id" v-model="checkData.otherType"/>
                                                <label style="line-height:30px;">{{item.name}}</label>
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">手术史</span>
                        <div class="way_content">
                            <div class="feritin fadeContainer" style="margin-top:0px;margin-bottom:0px;">
                                <div style="width:100%;overflow:hidden;">
                                    <label for="operation" style="margin-top:5px;">手术史：</label>
                                    <div style="display:inline-block;width:75%;margin-bottom:0px;vertical-align:top;"
                                         id="operation" ref="operation">
                                    <span class="ill1" v-for="(item,key) in operation" :key="key">
                                        <input type="checkbox" :name="item.checkName" :checked="item.check"
                                               :value="item.id" :id="item.forId" v-model="checkData.operation"/>
                                        <label :for="item.forId">{{item.name}}</label>
                                    </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">既往史</span>
                        <div class="way_content">
                            <div>
                                <label for="">健康及疾病情况：</label>
                                <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="checkData.healthy"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">婚育史</span>
                        <div class="way_content">
                            <div>
                                <label for="">婚姻及生育情况：</label>
                                <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="checkData.marriage"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">家族史</span>
                        <div class="way_content">
                            <div>
                                <label for="">家族成员发病情况：</label>
                                <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="checkData.family"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">查体</span>
                        <div class="way_content">
                            <div>
                                <label for="">身体检查情况：</label>
                                <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="checkData.body"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">诊断</span>
                        <div class="way_content">
                            <div>
                                <label for="">判定病症情况：</label>
                                <textarea name="" id="" cols="30" rows="10" style="height:80px;" v-model="checkData.disease"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--    随访记录--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="visitedRecord">
                <%-- 随访提醒 --%>
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">随访记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(1)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addVisitedRecord()" style="margin-top:20px;">
                                <img src="../../../../assets/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="tablepart">
                            <table id="visited" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>随访方式</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--    MMSE--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="MMSERecord">
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">MMSE记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(2)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addMMSERecord()" style="margin-top:20px;">
                                <img src="${assets}/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="MMSE">
                            <table id="MMSEtable" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>分数</th>
                                    <th>结果</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--    报卡--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="MMSERecord">
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">报卡记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(3)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addReportCardRecord()" style="margin-top:20px;">
                                <img src="${assets}/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="ReportCard">
                            <table id="ReportCardtable" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>诊断结果</th>
                                    <th>分数</th>
                                    <th>结果</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--    AD-IE模块--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="MMSERecord">
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">AD-IE记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(4)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addADIERecord()" style="margin-top:20px;">
                                <img src="${assets}/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="ADIE">
                            <table id="ADIEtable" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>分数</th>
                                    <th>结果</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--    ADL评定模块--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="MMSERecord">
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">ADL评定记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(5)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addADLRecord()" style="margin-top:20px;">
                                <img src="${assets}/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="ADL">
                            <table id="ADLtable" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>分数</th>
                                    <th>Katz指数</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--    BPSL模块--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="MMSERecord">
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">BPSL评定记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(6)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addBPSLRecord()" style="margin-top:20px;">
                                <img src="${assets}/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="BPSL">
                            <table id="BPSLtable" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>分数</th>
                                    <th>alpha数</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<%--    GAD筛选模块--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="MMSERecord">
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">GAD筛选记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(7)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addGADRecord()" style="margin-top:20px;">
                                <img src="${assets}/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="GAD">
                            <table id="GADtable" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>分数</th>
                                    <th>结果</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <%-- PHQ筛选模块--%>
    <div id="illnessInfo" class="illness active"
         style="margin-bottom:10px;background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);">
        <div class="test">
            <div class="PHQRecord">
                <div class="illness"
                     style="background-color: #ffffff;box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.05);padding-bottom:10px;">
                    <div style="margin-left:19px;">
                        <div style="margin-bottom:10px;">
                            <h3 style="display:inline-block;margin-top:20px;">PHQ筛选记录</h3>
                            <button type="button" class="btn btn-info" @click="moreRecord(8)" style="margin-top:20px;">更多
                            </button>
                            <button type="button" class="btn btn-info" @click="addPHQRecord()" style="margin-top:20px;">
                                <img src="${assets}/images/add.png" alt="" style="width:14px;vertical-align: middle;">&nbsp;&nbsp;添加
                            </button>
                        </div>
                        <div id="PHQ">
                            <table id="PHQtable" class="display" cellspacing="10" width="95%">
                                <thead>
                                <tr style="bordr:none !important;cursor:auto !important">
                                    <th>随访ID</th>
                                    <th>随访日期</th>
                                    <th>分数</th>
                                    <th>结果</th>
                                </tr>
                                </thead>
                            </table>
                            <%--<p v-show="check" style="text-align:center;line-height:40px;font-size:14px;">暂无数据</p>--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
  var vm = new Vue({
    el: "#main",
    data:{
      idcard:'',
      infor:{},
      // 饮用类型数组
      drinkingType: [
        {
          name: '白开水',
          id: '1',
          checkName: 'drinkingType',
          forId: 'drinkingType1',
          check: false
        },
        {
          name: '浓茶水',
          id: '2',
          checkName: 'drinkingType',
          forId: 'drinkingType2',
          check: false
        },
        {
          name: '乳制品',
          id: '3',
          checkName: 'drinkingType',
          forId: 'drinkingType3',
          check: false
        },
        {
          name: '碳酸饮料',
          id: '4',
          checkName: 'drinkingType',
          forId: 'drinkingType4',
          check: false
        },
        {
          name: '咖啡',
          id: '5',
          checkName: 'drinkingType',
          forId: 'drinkingType5',
          check: false
        },
        {
          name: '其它饮料',
          id: '6',
          checkName: 'drinkingType',
          forId: 'drinkingType6',
          check: false
        }
      ],
      // 最常用锻炼方式
      sportMode: [
        {
          name: '散步',
          id: '1',
          forId: 'sportMode1',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '快步走',
          id: '2',
          forId: 'sportMode2',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '慢跑',
          id: '3',
          forId: 'sportMode3',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '跳舞',
          id: '4',
          forId: 'sportMode4',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '太极拳',
          id: '5',
          forId: 'sportMode5',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '爬山/楼梯',
          id: '6',
          forId: 'sportMode6',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '太极拳',
          id: '7',
          forId: 'sportMode7',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '健身器材',
          id: '8',
          forId: 'sportMode8',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '打球',
          id: '9',
          forId: 'sportMode9',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '游泳',
          id: '10',
          forId: 'sportMode10',
          checkName: 'sportMode',
          check: false
        },
        {
          name: '其他',
          id: '11',
          forId: 'sportMode11',
          checkName: 'sportMode',
          check: false
        }
      ],
      illnessData:{
        rheumatismType:[
          {
            name: '类风湿性关节炎',
            id: '1',
            forId: 'ysxjb1',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '骨关节炎',
            id: '2',
            forId: 'ysxjb2',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '脊椎关节炎',
            id: '3',
            forId: 'ysxjb3',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '血管炎',
            id: '4',
            forId: 'ysxjb4',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '原发性干燥综合征',
            id: '5',
            forId: 'ysxjb5',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '系统性红斑狼疮',
            id: '6',
            forId: 'ysxjb6',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '系统性硬化症',
            id: '7',
            forId: 'ysxjb7',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '多发性肌炎和皮肌炎',
            id: '8',
            forId: 'ysxjb8',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '自身免疫性肝病',
            id: '9',
            forId: 'ysxjb9',
            checkName: 'rheumatismType',
            checked: false
          },
          {
            name: '其他',
            id: '10',
            forId: 'ysxjb10',
            checkName: 'rheumatismType',
            checked: false
          }
        ],
        endocrineType:[
          {
            name: '甲状腺功能亢进症',
            id: '1',
            forId: 'nfm1',
            checked: false
          },
          {
            name: '甲状旁腺功能亢进症',
            id: '2',
            forId: 'nfm2',
            checked: false
          },
          {
            name: '库欣综合征',
            id: '3',
            forId: 'nfm3',
            checked: false
          },
          {
            name: '1型糖尿病',
            id: '4',
            forId: 'nfm4',
            checked: false
          },
          {
            name: '2型糖尿病',
            id: '5',
            forId: 'nfm5',
            checked: false
          },
          {
            name: '性腺功能减退',
            id: '6',
            forId: 'nfm6',
            checked: false
          },
          {
            name: '其他',
            id: '7',
            forId: 'nfm7',
            checked: false
          }
        ],
        circulatoryType:[
          {
            name: '高血压',
            id: '1',
            forId: 'xhxt1',
            checked: false
          },
          {
            name: '冠状动脉粥样硬化心脏病',
            id: '2',
            forId: 'xhxt2',
            checked: false
          },
          {
            name: '高血脂症',
            id: '3',
            forId: 'xhxt3',
            checked: false
          },
          {
            name: '其他',
            id: '4',
            forId: 'xhxt',
            checked: false
          }
        ],
        breathingType:[
          {
            name: '支气管哮喘',
            id: '1',
            forId: 'hxxt1',
            checked: false
          },
          {
            name: '慢性阻塞性肺疾病',
            id: '2',
            forId: 'hxxt2',
            checked: false
          },
          {
            name: '其他',
            id: '3',
            forId: 'hxxt3',
            checked: false
          },
        ],
        nerveType:[
          {
            name: '神经性厌食症',
            id: '1',
            forId: 'sjxt1',
            checked: false
          },
          {
            name: '脑血管病',
            id: '2',
            forId: 'sjxt2',
            checked: false
          },
          {
            name: '重症肌无力',
            id: '3',
            forId: 'sjxt3',
            checked: false
          },
          {
            name: '其他',
            id: '4',
            forId: 'sjxt4',
            checked: false
          },
        ],
        digestionType:[
    {
      name: '肝硬化',
      id: '1',
      forId: 'xhxtjb1',
      checked: false
    },
    {
      name: '吸收不良综合征',
      id: '2',
      forId: 'xhxtjb2',
      checked: false
    },
    {
      name: '炎症性肠病（溃疡性结肠炎；克罗恩病）',
      id: '3',
      forId: 'xhxtjb3',
      checked: false
    },
    {
      name: '乳糜泻',
      id: '4',
      forId: 'xhxtjb4',
      checked: false
    },
    {
      name: '胃部大切除术后',
      id: '5',
      forId: 'xhxtjb5',
      checked: false
    },
    {
      name: '其他',
      id: '6',
      forId: 'xhxtjb6',
      checked: false
    },
  ],
        urineType:[
                    {
                      name: '慢性肾功能不全或衰竭',
                      id: '1',
                      forId: 'mnxt1',
                      checked: false
                    },
                    {
                      name: '肾小管性疾病',
                      id: '2',
                      forId: 'mnxt2',
                      checked: false
                    },
                    {
                      name: '原发性胃小球肾病',
                      id: '3',
                      forId: 'mnxt3',
                      checked: false
                    },
                    {
                      name: '肾淀粉样变性',
                      id: '4',
                      forId: 'mn4',
                      checked: false
                    },
                    {
                      name: '其他',
                      id: '5',
                      forId: 'mn5',
                      checked: false
                    }
                  ],
        bloodType:[
          {
            name: '白血病',
            id: '1',
            forId: 'xyxt1',
            checked: false
          },
          {
            name: '骨髓增长异常综合征',
            id: '2',
            forId: 'xyxt2',
            checked: false
          },
          {
            name: '其他',
            id: '3',
            forId: 'xyxt3',
            checked: false
          }
        ],
        inheritanceType:[
          {
            name: '马凡综合征',
            id: '1',
            forId: 'xtxyc1',
            checked: false
          },
          {
            name: '血色病',
            id: '2',
            forId: 'xtxyc2',
            checked: false
          },
          {
            name: '卟啉病',
            id: '3',
            forId: 'xtxyc3',
            checked: false
          },
          {
            name: '成骨不全',
            id: '4',
            forId: 'xtxyc4',
            checked: false
          },
          {
            name: '其他',
            id: '5',
            forId: 'xtxyc5',
            checked: false
          }
        ],
        otherType:[
          {
            name: '原发性骨肿瘤',
            id: '1',
            forId: 'other1',
            checked: false
          },
          {
            name: '继发性骨肿瘤',
            id: '2',
            forId: 'other2',
            checked: false
          },
          {
            name: '乳腺癌',
            id: '3',
            forId: 'other3',
            checked: false
          },
          {
            name: '艾滋病',
            id: '4',
            forId: 'other4',
            checked: false
          },
          {
            name: '其他',
            id: '5',
            forId: 'other5',
            checked: false
          }
        ]
      },
      // 其他药物使用情况
      // 其他药物使用情况
      otherDrug: [
        {
          name: '无',
          id: '1',
          checkName: 'otherDrug',
          forId: 'otherDrug1',
          check: false
        },
        {
          name: '抗癫痫药物',
          id: '2',
          checkName: 'otherDrug',
          forId: 'otherDrug2',
          check: false
        },
        {
          name: '细胞毒或免疫抑制剂',
          id: '3',
          checkName: 'otherDrug',
          forId: 'otherDrug3',
          check: false
        },
        {
          name: '铝制剂',
          id: '4',
          checkName: 'otherDrug',
          forId: 'otherDrug4',
          check: false
        },
        {
          name: '锂制剂',
          id: '5',
          checkName: 'otherDrug',
          forId: 'otherDrug5',
          check: false
        },
        {
          name: '肝素',
          id: '6',
          checkName: 'otherDrug',
          forId: 'otherDrug6',
          check: false
        },
        {
          name: '芳香化酶抑制剂',
          id: '7',
          checkName: 'otherDrug',
          forId: 'otherDrug7',
          check: false
        },
        {
          name: '其他',
          id: '8',
          checkName: 'otherDrug',
          forId: 'otherDrug8',
          check: false
        }
      ],
      // 手术史
      operation: [
        {
          name: '无',
          id: '1',
          checkName: 'operation',
          forId: 'operation1',
          check: false
        },
        {
          name: '子宫切除',
          id: '2',
          checkName: 'operation',
          forId: 'operation2',
          check: false
        },
        {
          name: '卵巢切除',
          id: '3',
          checkName: 'operation',
          forId: 'operation3',
          check: false
        },
        {
          name: '甲状腺切除',
          id: '4',
          checkName: 'operation',
          forId: 'operation4',
          check: false
        },
        {
          name: '甲状旁腺切除',
          id: '5',
          checkName: 'operation',
          forId: 'operation5',
          check: false
        },
        {
          name: '使用过骨水泥',
          id: '6',
          checkName: 'operation',
          forId: 'operation6',
          check: false
        },
        {
          name: '其他',
          id: '7',
          checkName: 'operation',
          forId: 'operation7',
          check: false
        }
      ],
      // 保存诊疗信息参数
      checkData:{
        idCard:'',
        blType:'',             //失智分级
        msg:'',                 //患者病症描述
        smoke:'',               //是否吸烟
        drink:'',               //是否吸烟
        drinkingType:[],
        diet:'',                //膳食
        sleepTime:'',                //平均每天睡眠时间
        sunTime:'',                //平均每天日晒时间
        sportTimes:'',                //平均每周锻炼频率
        sportTime:'',                //平均每天锻炼时间
        sportMode:[],                //最常用锻炼方式
        // 疾病史
        rheumatismType:[],           //风湿系统疾病
        endocrineType:[],            //内分泌及代谢系统疾病
        circulatoryType:[],          //循环系统疾病
        breathingType:[],            //呼吸系统疾病
        nerveType:[],                //神经及精神系统疾病
        digestionType:[],            //消化系统疾病
        urineType:[],                //泌尿系统疾病
        bloodType:[],               //血液系统疾病
        inheritanceType:[],          //先天性及遗传性疾病
        otherType:[],                 //其他
        // 手术史
        operation:[],
        // 既往史
        healthy:'',
        // 婚育史
        marriage:'',
        // 家族史
        family:'',
        // 查体
        body:'',
        // 诊断
        disease:''
      }
    },
    methods:{
      getType(){
        console.log(this.checkData.blType);

      },
      getPersonalInfo(){
        let that = this;
        // 获取病人信息
        $.ajax({
          url: "${URL_PATIENT_PATIENTINFO}",
          type: 'post',
          dataType: "json",
          data: {
            idCard: that.idcard
          },
          success: function (data) {
            if(data.success){
              that.infor = data.data;
              that.checkData.blType = data.data.blType;
            }

          }
        })
      },
      // 获取地址里的参数
      getParams(name){
        name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
        var regexS = "[\\?&]"+name+"=([^&#]*)";
        var regex = new RegExp( regexS );
        var results = regex.exec( window.location.href );
        if( results == null )
          return "";
        else
          return results[1];
      },
      // 保存诊疗信息
      dataSave() {
          let that = this;
            // if(that.checkData.drinkingType.length == 0){
            //   that.checkData.drinkingType = '';
            // }
            // if(that.checkData.sportMode.length == 0){
            //   that.checkData.sportMode = '';
            // }
            // if(that.checkData.rheumatismType.length == 0){
            //   that.checkData.rheumatismType = '';
            // }
            // if(that.checkData.endocrineType.length == 0){
            //   that.checkData.endocrineType = '';
            //     }
            // if(that.checkData.circulatoryType.length == 0){
            //   that.checkData.circulatoryType = '';
            // }
            // if(that.checkData.breathingType.length == 0){
            //   that.checkData.breathingType = '';
            // }
            // if(that.checkData.nerveType.length == 0){
            //   that.checkData.nerveType = '';
            // }
            // if(that.checkData.digestionType.length == 0){
            //   that.checkData.digestionType = '';
            // }
            // if(that.checkData.urineType.length == 0){
            //   that.checkData.urineType = '';
            // }
            // if(that.checkData.bloodType.length == 0){
            //   that.checkData.bloodType = '';
            // }
            // if(that.checkData.inheritanceType.length == 0){
            //   that.checkData.inheritanceType = '';
            // }
            // if(that.checkData.otherType.length == 0){
            //   that.checkData.otherType = '';
            // }
            // if(that.checkData.operation.length == 0){
            //   that.checkData.operation = '';
            // }
        // debugger

          that.checkData.drinkingType = that.checkData.drinkingType.toString();
          // debugger
          that.checkData.sportMode = that.checkData.sportMode.toString();
          that.checkData.rheumatismType = that.checkData.rheumatismType.toString();
          that.checkData.endocrineType = that.checkData.endocrineType.toString();
          that.checkData.circulatoryType = that.checkData.circulatoryType.toString();
          that.checkData.breathingType = that.checkData.breathingType.toString();
          that.checkData.nerveType = that.checkData.nerveType.toString();
          that.checkData.digestionType = that.checkData.digestionType.toString();
          that.checkData.urineType = that.checkData.urineType.toString();
          that.checkData.bloodType = that.checkData.bloodType.toString();
          that.checkData.inheritanceType = that.checkData.inheritanceType.toString();
          that.checkData.otherType = that.checkData.otherType.toString();
          that.checkData.operation = that.checkData.operation.toString();

          $.ajax({
          url: '${URL_BLONELOOSE_SAVECHECK}',
          contentType:'application/json;charset=utf-8',
          data: JSON.stringify(that.checkData),
            traditional:true,
          dataType: 'json',
          type: 'post',
          success: function (data) {
            if (data.success) {
              $.ajax({
                url: "${URL_SCREENING_GETBREADLINE}",
                dataType: 'json',
                type: 'post',
                success: function (data) {
                  var urlLib = '';
                  urlLib = JSON.parse(data.data).slice(0, urlLib.length - 1)
                  $.ajax({
                    url: '${URL_SCREENING_SAVEBREADLINE}',
                    data: {
                      breadLine: JSON.stringify(urlLib)
                    },
                    dataType: 'json',
                    type: 'post',
                    success: function (data) {
                      parent.showSrc(urlLib[urlLib.length - 1].href);
                      // 刷新当前页面
                      window.parent.simpleCloseModal();
                    }
                  })
                }
              })
            }
          }
        })
      },
      // 新增随访记录
      addVisitedRecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/follow/up/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'失智随访详情',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/follow/up/index?idCard=' + that.idcard + '&id=' + '')
                <%--parent.showSrc('${ctx}/lose/wisdom/patient/records/index?idCard=' + name + '&diseasesType=' + diseasesType + '&type=' + Type)--%>
              }
            })
          }
        })
      },
      // 随访更多
      moreRecord(type) {
        var goUrl = '',name='';
        if(type == 1){
          goUrl = '${ctx}/lose/wisdom/follow/up/more?idCard=' + this.idcard;
          name = '失智随访更多';
        }else if(type == 2){
          goUrl = '${ctx}/lose/wisdom/questionnaire/more?idCard=' + this.idcard;
          name = '失智MMSE更多';
        }else if(type == 3){
          goUrl = '${ctx}/lose/wisdom/report/card/more?idCard=' + this.idcard;
          name = '失智报卡更多';
        }else if(type == 4){
          goUrl = '${ctx}/lose/wisdom/adie/more?idCard=' + this.idcard;
          name = 'AD-IE更多';
        }else if(type == 5){
          goUrl = '${ctx}/lose/wisdom/barthel/adl/more?idCard=' + this.idcard;
          name = 'ADL更多';
        }else if(type == 6){
          goUrl = '${ctx}/lose/wisdom/bpsl/more?idCard=' + this.idcard;
          name = 'BPSL更多';
        }else if(type == 7){
          goUrl = '${ctx}/lose/wisdom/screening/gad/more?idCard=' + this.idcard;
          name = 'GAD更多';
        }else if(type == 8){
          goUrl = '${ctx}/lose/wisdom/screening/phq/more?idCard=' + this.idcard;
          name = 'PHQ更多';
        }

        $.ajax({
          url: "${URL_SCREENING_GETBREADLINE}",
          dataType: 'json',
          type: 'post',
          success: function (data) {
            breadLine = JSON.parse(data.data)
            var url = goUrl + '&id=' + '' + '&diseasesType=5&type=' + ''
            breadLine.push({
              name: name,
              href: url
            })
            $.ajax({
              url: '${URL_SCREENING_SAVEBREADLINE}',
              data: {
                breadLine: JSON.stringify(breadLine)
              },
              dataType: 'json',
              type: 'post',
              success: function (data) {
                parent.showSrc(url)
              }
            })
          }
        })
      },
      // 新增MMSE
      addMMSERecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/questionnaire/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'MMSE记录',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/questionnaire/index?idCard=' + that.idcard + '&id=' + '')
                <%--parent.showSrc('${ctx}/lose/wisdom/patient/records/index?idCard=' + name + '&diseasesType=' + diseasesType + '&type=' + Type)--%>
              }
            })
          }
        })
      },
      // 随访表格初始化
      initVisitedTable(idCard) {
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom/follow/up/list?idCard=' + idCard;
        table = $('#visited').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          }, {
            "targets": 2,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.followUpWay == '1') {
                $(nTd).text('门诊')
              } else if (oData.followUpWay == '2') {
                $(nTd).text('家庭')
              } else if (oData.followUpWay == '3') {
                $(nTd).text('电话')
              } else if (oData.followUpWay == '4') {
                $(nTd).text('集体')
              } else {
                $(nTd).text('')
              }
            }
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },
      // MMSE表格初始化
      initMMSETable(idCard) {
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom/questionnaire/mmse/list?idCard=' + idCard;
        table = $('#MMSEtable').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          },{
            "mDataProp": "result"
          },{
            "mDataProp": "score"
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },
      // 报卡表格初始化
      initReportCardTable(idCard) {
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom/report/card/list?idCard=' + idCard;
        table = $('#ReportCardtable').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          },{
            "mDataProp": "evaluateResult"
          },{
            "mDataProp": "evaluateScore"
          },{
              "targets": 4,
              "data": null,
              "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
                if (oData.diagnosisResult != null) {
                  if(oData.diagnosisResult == '0'){
                    $(nTd).html('轻度');
                  }else if(oData.diagnosisResult == '1'){
                    $(nTd).html('中度');
                  }else{
                    $(nTd).html('重度');
                  }

                } else {
                  $(nTd).html('')
                }
              }
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },
      // AD-IE表格初始化
      initAdieTable(idCard) {
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom/adie/list?idCard=' + idCard;
        table = $('#ADIEtable').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          },{
            "mDataProp": "result"
          },{
            "mDataProp": "score"
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },
      // ADL表格初始化
      initAdlTable(idCard) {
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom/barthel/adl/list?idCard=' + idCard;
        table = $('#ADLtable').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          },{
            "mDataProp": "result"
          },{
            "mDataProp": "score"
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },
      // BPSL表格初始化
      initBpslTable(idCard){
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom/bpsl/list?idCard=' + idCard;
        table = $('#BPSLtable').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          },{
            "mDataProp": "result"
          },{
            "mDataProp": "score"
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },
      // GAD表格初始化
      initGadTable(idCard){
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom//screening/gad/list?idCard=' + idCard;
        table = $('#GADtable').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          },{
            "mDataProp": "result"
          },{
            "mDataProp": "score"
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },
      // PHQ表格初始化
      initPhqTable(idCard){
        let that = this;
        var url = '';
        url = '${ctx}/lose/wisdom/screening/phq/list?idCard=' + idCard;
        table = $('#PHQtable').DataTable({
          "dom": "<'row'<'#mytool.col-xs-10'><'col-xs-6'f>r>" +
            "t" +
            "<'row'<''i><''p>>",
          "bFilter": false,//去掉搜索框
          "bAutoWidth": true, //自适应宽度
          "info": false,
          "bSort": false,
          "sPaginationType": "full_numbers",
          "ordering": false,//是否允许Datatables开启排序
          "bProcessing": true,
          "bServerSide": true,
          "searching": false, //去掉搜索框方法一
          'lengthChange': false,
          "oPaginate": false,
          "sAjaxSource": url,
          "sAjaxDataProp": "dataList",//查询后，返回的集合
          "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
              "dataType": 'json',
              "url": sSource,
              "type": 'post',
              "success": function (resp) {
                fnCallback(resp)
              }
            });
          },
          "aoColumns": [{
            "mDataProp": "id"
          },{
            "targets": 1,
            "data": null,
            "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
              if (oData.answerTime != null) {
                $(nTd).html(oData.answerTime.slice(0, 10))
              } else {
                $(nTd).html('')
              }
            }
          },{
            "mDataProp": "result"
          },{
            "mDataProp": "score"
          }],
          "oLanguage": {//插件的汉化
            "sLengthMenu": "32",
            "sInfoEmpty": "没有数据",
            "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
            "oPaginate": {
              "sFirst": "",
              "sPrevious": "<b><b>",
              "sLast": "",
              "sNext": "<i></i>"
            },
            "sZeroRecords": " ",
            "sProcessing": "<img src='' />",
            "sSearch": "搜索"
          },
        });
      },

      // 增报卡记录
      addReportCardRecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/report/card/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'报卡记录',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/report/card/index?idCard=' + that.idcard + '&id=' + '')
              }
            })
          }
        })
      },
      // 新增AD-IE记录
      addADIERecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/adie/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'AD-IE记录',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/adie/index?idCard=' + that.idcard + '&id=' + '')
              }
            })
          }
        })
      },
      // 新增ADL记录
      addADLRecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/barthel/adl/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'ADL记录',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/barthel/adl/index?idCard=' + that.idcard + '&id=' + '')
              }
            })
          }
        })
      },
      // 新增BPSL记录
      addBPSLRecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/bpsl/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'BPSL记录',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/bpsl/index?idCard=' + that.idcard + '&id=' + '')
              }
            })
          }
        })
      },
      // 新增GAD筛选记录
      addGADRecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/screening/gad/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'GAD筛选记录',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/screening/gad/index?idCard=' + that.idcard + '&id=' + '')
              }
            })
          }
        })
      },
      // 新增PHQ筛选记录
      addPHQRecord(){
        let that = this;
        $.ajax({
          url:"${URL_SCREENING_GETBREADLINE}",
          dataType:'json',
          type:'post',
          success:function(data){
            breadLine = JSON.parse(data.data)
            var url = '${ctx}/lose/wisdom/screening/phq/index?idCard=' + that.idcard + '&change=' + '0'
            breadLine.push({
              name:'PHQ筛选记录',
              href:url
            });
            $.ajax({
              url:'${URL_SCREENING_SAVEBREADLINE}',
              data:{
                breadLine:JSON.stringify(breadLine)
              },
              dataType:'json',
              type:'post',
              success:function(data){
                parent.showSrc('${ctx}/lose/wisdom/screening/phq/index?idCard=' + that.idcard + '&id=' + '')
              }
            })
          }
        })
      },
      // 修改病人基本信息
      updateInfo: function () {
        let that = this;
        var add = location.search.split('?')[1].split('&')
        var type = location.search.split('?')[1].split('&')[add.length - 1].split('=')[1];

        window.parent.showNewModelIframe("${ctx}/pppatientbase/new/update?id=" + that.infor.id + '&diseasesType=' + type + '&type=' + that.Type, 800, 650);
      },
      show:function(idcard){
// 初始化获取诊疗数据（获取骨松患者的最近一次诊疗数据）
        var that = this;
        $.ajax({
          url: '${URL_BLONELOOSE_CHECKINFO_LATEST}',
          data: {
            idCard: idcard
          },
          dataType: 'json',
          type: 'get',
          success: function (data) {
            console.log(data);
            if(data.data != null){
              const {idCard,blType,msg,riskFactors,smoke,drink,drinkingType,diet,sleepTime,sunTime,sportTimes,sportTime,sportMode,rheumatismType,endocrineType,circulatoryType,breathingType,nerveType,digestionType,urineType,bloodType,inheritanceType,otherType,operation,healthy,marriage,family,body,disease} = data.data;

              that.checkData = {idCard,blType,msg,riskFactors,smoke,drink,drinkingType,diet,sleepTime,sunTime,sportTimes,sportTime,sportMode,rheumatismType,endocrineType,circulatoryType,breathingType,nerveType,digestionType,urineType,bloodType,inheritanceType,otherType,operation,healthy,marriage,family,body,disease};
              
              if(that.checkData.drinkingType.length > 0){
                that.checkData.drinkingType = that.checkData.drinkingType.split(',');
              }else{
                that.checkData.drinkingType = [];
              }
              if(that.checkData.sportMode.length > 0){
                that.checkData.sportMode = that.checkData.sportMode.split(',');
              }else{
                that.checkData.sportMode = [];
              }
              if(that.checkData.rheumatismType.length > 0){
                that.checkData.rheumatismType = that.checkData.rheumatismType.split(',');
              }else{
                that.checkData.rheumatismType = [];
              }
              if(that.checkData.endocrineType.length > 0){
                that.checkData.endocrineType = that.checkData.endocrineType.split(',');
              }else{
                that.checkData.endocrineType = [];
              }
              if(that.checkData.circulatoryType.length > 0){
                that.checkData.circulatoryType = that.checkData.circulatoryType.split(',');
              }else{
                that.checkData.circulatoryType = [];
              }
              if(that.checkData.breathingType.length > 0){
                that.checkData.breathingType = that.checkData.breathingType.split(',');
              }else{
                that.checkData.breathingType = [];
              }
              if(that.checkData.nerveType.length > 0){
                that.checkData.nerveType = that.checkData.nerveType.split(',');
              }else{
                that.checkData.nerveType = [];
              }
              if(that.checkData.digestionType.length > 0){
                that.checkData.digestionType = that.checkData.digestionType.split(',');
              }else{
                that.checkData.digestionType = [];
              }
              if(that.checkData.urineType.length > 0){
                that.checkData.urineType = that.checkData.urineType.split(',');
              }else{
                that.checkData.urineType = [];
              }
              if(that.checkData.bloodType.length > 0){
                that.checkData.bloodType = that.checkData.bloodType.split(',');
              }else{
                that.checkData.bloodType = [];
              }
              if(that.checkData.inheritanceType.length > 0){
                that.checkData.inheritanceType = that.checkData.inheritanceType.split(',');
              }else{
                that.checkData.inheritanceType = [];
              }
              if(that.checkData.otherType.length > 0){
                that.checkData.otherType = that.checkData.otherType.split(',');
              }else{
                that.checkData.otherType = [];
              }
              if(that.checkData.operation.length > 0){
                that.checkData.operation = that.checkData.operation.split(',');
              }else{
                that.checkData.operation = [];
              }
            }

          }
        })
      }
    },
    mounted(){
      this.idcard = this.getParams("idCard");
      this.checkData.idCard = this.idcard;
      this.show(this.idcard);
      this.getPersonalInfo(this.idcard);
      this.initVisitedTable(this.idcard);
      this.initMMSETable(this.idcard);
      this.initReportCardTable(this.idcard);
      this.initAdieTable(this.idcard);
      this.initAdlTable(this.idcard);
      this.initBpslTable(this.idcard);
      this.initGadTable(this.idcard);
      this.initPhqTable(this.idcard);
    }
  })



</script>
</body>
</html>